const Sequelize = require('sequelize')
const sequelize = require('../../core/db')

const Admin = sequelize.define('admin', {
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
    username: {
        type: Sequelize.STRING,
        primaryKey: true
    },
    password: {
        type: Sequelize.STRING
    },
    code: {
        type: Sequelize.INTEGER
    },
    token: {
        type: Sequelize.STRING
    }
})




module.exports = Admin